<%= render(:partial => "shared/progress_chart", :locals => { :distance => @runner.distance_cache, :goal => @runner.goal }) %>

<!-- TODO: make runner page much, much, prettier -->

<div style="float: left; padding: 10px; border:1px solid #555;">

<p>
  <b>Group:</b>
  <%=h @runner.group_id %>
</p>

<p>
  <b>First name:</b>
  <%=h @runner.first_name %>
</p>

<p>
  <b>Last name:</b>
  <%=h @runner.last_name %>
</p>

<p>
  <b>Gender:</b>
  <%=h @runner.gender %>
</p>

<p>
  <b>Birthdate:</b>
  <%= format_date(@runner.birthdate) %>
</p>

<p>
  <b>Level:</b>
  <%=h @runner.level %>
</p>

<p>
  <b>T-Shirt size:</b>
  <%=h @runner.shirt_size %>
</p>

<p>
  <b>Shoe size:</b>
  <%=h @runner.shoe_size %>
</p>

<p>
  <b>Goal in miles:</b>
  <%=h @runner.goal %>
</p>

<%= link_to 'Edit', edit_runner_path(@runner) %>
</div>

<div style="float: left; padding: 10px; border:1px solid #555;">
<p>
	<b>Login:</b>
	<%=h @runner.login_message %>
</p>
<%= if @runner.has_login?
	link_to "Edit Login", edit_user_path(@user);
    else
    	h "Create Login"
    end %>
<%= link_to "Map", map_path(@runner) %>
</div>

<div style="float: right;">
  <h2>Entries</h2>
<%= render(:partial => 'entries/list') %>
</div>
